using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UtilRes
{
    public static GameObject Instantiate(string key)
    {
        var obj = UnityEngine.AddressableAssets.Addressables.InstantiateAsync(key).WaitForCompletion();
        return obj;
    }

    public static bool Release(GameObject obj)
    {
        return UnityEngine.AddressableAssets.Addressables.ReleaseInstance(obj);
    }
}
